package com.lcm.weam.dao.pro;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lcm.weam.entity.pro.Project;
import com.lcm.weam.entity.req.ProjectMap;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProjectMapper extends BaseMapper<Project> {

    String createPro(Project project);

    List<Project> selectAllPro(String uid);

    IPage<Project> selectUserPro(Page<Project> projectPage, String uid);

    IPage<Project> selectUserProTS(Page<Project> projectPage, @Param("uid") String uid, @Param("map") ProjectMap projectMap);
}
